package com.wjw.java.basic.others_;

import java.util.Scanner;

/**
 * 键盘输入
 */
public class KeyboardInput {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("请输入用户名称：");
        String name = input.next();
        System.out.println("请输入年龄：");
        int age = input.nextInt();
        System.out.println("请输入成绩：");
        double score = input.nextDouble();
        System.out.println("用户名为："+name);
        System.out.println("年龄为："+age);
        System.out.println("成绩为："+score);
    }
}
